package com.hulk.dryad.persistence.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.ToString;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 岗位信息
 *
 * @author hulk
 * @date 2021-04-01 10:06:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ToString(callSuper = true)
@TableName("t_sys_post")
public class SysPost extends SuperEntity<SysPost> {

	private static final long serialVersionUID = 1L;

	/**
	 * 岗位ID
	 */
	@TableId(value = "post_id", type = IdType.AUTO)
	private Long postId;
	/**
	 * 岗位编码
	 */
	@TableField(value = "code")
	private String code;
	/**
	 * 岗位名称
	 */
	@TableField(value = "name")
	private String name;
	/**
	 * 显示顺序
	 */
	@TableField(value = "sort")
	private Integer sort;
	/**
	 * Y正常 N停用
	 */
	@TableField(value = "use_flag")
	private String useFlag;
	/**
	 * 创建者
	 */
	@TableField(value = "created_by", fill = FieldFill.INSERT)
	private String createdBy;
	/**
	 * 创建时间
	 */
	@TableField(value = "created_time", fill = FieldFill.INSERT)
	private LocalDateTime createdTime;
	/**
	 * 更新者
	 */
	@TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
	private String updatedBy;
	/**
	 * 修改时间
	 */
	@TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updatedTime;
	/**
	 * 备注
	 */
	@TableField(value = "remark")
	private String remark;
	/**
	 *
	 */
	@TableField(value = "rsv1")
	private String rsv1;
	/**
	 * 0-正常，1-删除
	 */
	@TableLogic
	private String delFlag;

	@Override
	protected Serializable pkVal() {
		return this.postId;
	}

}
